CC =		gcc
STRIP =		strip
RM =		rm

#CFLAGS =	-march=native -mtune=native -mfpmath=sse -msse -msse2 -mssse3 -mmmx -fomit-frame-pointer -pipe -O2 -Wall
CFLAGS =	-march=native -mtune=native -pipe -g -ggdb -ggdb3 -Wall
LDFLAGS =
DEFINE =
LIBS =		-lgd
STRIP_ARGS =	--strip-all

TARGET =	netgraph

OBJECTS =	datacollect.o \
		filesutils.o \
		grphimages.o \
		netgraph.o \
		ngexit.o \
		parseargs.o \
		stringsutils.o


${TARGET}: $(OBJECTS)
	$(CC) $? $(LIBS) -o $@

%.o: %.c
	$(CC) $(CFLAGS) $(DEFINE) -c $< -o $@


all: libgd.a ${TARGET}

libgd.a: libpng.a


libpng.a:


strip: all
	$(STRIP) $(STRIP_ARGS) ${TARGET}

clean:
	$(RM) -f ${TARGET} *.o

.PHONY: all strip clean mrproper
